<?php
/**
 * Created by PhpStorm.
 * User: chendan
 * Date: 2017/2/26
 * Time: 下午4:49
 */

//function compareIp(){
//    yield $ip;
//    $newIp = $ip;
//    if($newIp)
//}
//
//$generate = compareIp();

$fileHandle = fopen("./number", 'r');
while (!feof($fileHandle)) {
    //一次只读取一行文件
    $line = fgets($fileHandle);

    echo $line . "\n";
    echo memory_get_usage() . "bytes\n";
}

fclose($fileHandle);